package com.yazi.mxz.behavior.jackson.filter;

import java.util.HashSet;
import java.util.Set;

import com.fasterxml.jackson.databind.ser.FilterProvider;
import com.fasterxml.jackson.databind.ser.impl.SimpleBeanPropertyFilter;
import com.fasterxml.jackson.databind.ser.impl.SimpleFilterProvider;
import com.yazi.mxz.behavior.entity.repository.Store;

public abstract class StoreFilter {
	
	public static FilterProvider get() {
		final Set<String> store = new HashSet<String>();
		store.add("storeId");
		store.add("companyId");
		store.add("name");
		store.add("phone");
		store.add("logo");
		store.add("address");
		store.add("regionPath");
		store.add("goodsScore");
		store.add("serviceScore");
		store.add("deliveryScore");
		store.add("loc");

		return new SimpleFilterProvider().addFilter(Store.class.getSimpleName(),
				SimpleBeanPropertyFilter.filterOutAllExcept(store));
	}
	
}
